﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200081D RID: 2077
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetServerPrefsDataCsReq : IMessage<GetServerPrefsDataCsReq>, IMessage, IEquatable<GetServerPrefsDataCsReq>, IDeepCloneable<GetServerPrefsDataCsReq>, IBufferMessage
	{
		// Token: 0x17001A5A RID: 6746
		// (get) Token: 0x06005D25 RID: 23845 RVA: 0x000F97CC File Offset: 0x000F79CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetServerPrefsDataCsReq> Parser
		{
			get
			{
				return GetServerPrefsDataCsReq._parser;
			}
		}

		// Token: 0x17001A5B RID: 6747
		// (get) Token: 0x06005D26 RID: 23846 RVA: 0x000F97D3 File Offset: 0x000F79D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetServerPrefsDataCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001A5C RID: 6748
		// (get) Token: 0x06005D27 RID: 23847 RVA: 0x000F97E5 File Offset: 0x000F79E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetServerPrefsDataCsReq.Descriptor;
			}
		}

		// Token: 0x06005D28 RID: 23848 RVA: 0x000F97EC File Offset: 0x000F79EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetServerPrefsDataCsReq()
		{
		}

		// Token: 0x06005D29 RID: 23849 RVA: 0x000F97F4 File Offset: 0x000F79F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetServerPrefsDataCsReq(GetServerPrefsDataCsReq other) : this()
		{
			this.serverPrefsId_ = other.serverPrefsId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005D2A RID: 23850 RVA: 0x000F9819 File Offset: 0x000F7A19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetServerPrefsDataCsReq Clone()
		{
			return new GetServerPrefsDataCsReq(this);
		}

		// Token: 0x17001A5D RID: 6749
		// (get) Token: 0x06005D2B RID: 23851 RVA: 0x000F9821 File Offset: 0x000F7A21
		// (set) Token: 0x06005D2C RID: 23852 RVA: 0x000F9829 File Offset: 0x000F7A29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ServerPrefsId
		{
			get
			{
				return this.serverPrefsId_;
			}
			set
			{
				this.serverPrefsId_ = value;
			}
		}

		// Token: 0x06005D2D RID: 23853 RVA: 0x000F9832 File Offset: 0x000F7A32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetServerPrefsDataCsReq);
		}

		// Token: 0x06005D2E RID: 23854 RVA: 0x000F9840 File Offset: 0x000F7A40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetServerPrefsDataCsReq other)
		{
			return other != null && (other == this || (this.ServerPrefsId == other.ServerPrefsId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005D2F RID: 23855 RVA: 0x000F9870 File Offset: 0x000F7A70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ServerPrefsId != 0U)
			{
				num ^= this.ServerPrefsId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005D30 RID: 23856 RVA: 0x000F98AF File Offset: 0x000F7AAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005D31 RID: 23857 RVA: 0x000F98B7 File Offset: 0x000F7AB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005D32 RID: 23858 RVA: 0x000F98C0 File Offset: 0x000F7AC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ServerPrefsId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.ServerPrefsId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005D33 RID: 23859 RVA: 0x000F98F4 File Offset: 0x000F7AF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ServerPrefsId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ServerPrefsId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005D34 RID: 23860 RVA: 0x000F9932 File Offset: 0x000F7B32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetServerPrefsDataCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ServerPrefsId != 0U)
			{
				this.ServerPrefsId = other.ServerPrefsId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005D35 RID: 23861 RVA: 0x000F9963 File Offset: 0x000F7B63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005D36 RID: 23862 RVA: 0x000F996C File Offset: 0x000F7B6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.ServerPrefsId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040023FF RID: 9215
		private static readonly MessageParser<GetServerPrefsDataCsReq> _parser = new MessageParser<GetServerPrefsDataCsReq>(() => new GetServerPrefsDataCsReq());

		// Token: 0x04002400 RID: 9216
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002401 RID: 9217
		public const int ServerPrefsIdFieldNumber = 5;

		// Token: 0x04002402 RID: 9218
		private uint serverPrefsId_;
	}
}
